package com.corona.game;

import com.corona.Game;

/* compiled from: Action.java */
/* loaded from: pokewilds.jar:com/pkmngen/game/WaitFrames.class */
public class WaitFrames extends Action {
    int length;
    public Action.Layer layer = Action.Layer.gui_110;

    public WaitFrames(Game game, int length, Action nextAction) {
        super(new Object[0]);
        this.nextAction = nextAction;
        this.length = length;
    }

    @Override // com.corona.game.Action
    public String getCamera() {
        return "gui";
    }

    @Override // com.corona.game.Action
    public Action.Layer getLayer() {
        return this.layer;
    }

    @Override // com.corona.game.Action
    public void step(Game game) {
        this.length--;
        if (this.length <= 0) {
            game.insertAction(this.nextAction);
            game.actionStack.remove(this);
        }
    }
}
